package whu.cn.whushare.common;

//设置全局结果码
public enum ResultCode {
    FORMAT_ERROR(4),
    NETWORK_NOT_EXISTS(2),
    EMPTY(0),
    DATA_ERROR(3),
    SUCCESS(1);

    private int code;

    public int getCode(){
        return code;
    }

    ResultCode(int i){
        this.code = i;
    }
}
